﻿using System;
using System.Windows.Messaging;

namespace Remoting.Reactive.Windowing
{
    internal sealed class MessageReceived : IMessageReceived
    {
        private readonly MessageReceivedEventArgs _eventArgs;

        public MessageReceived(MessageReceivedEventArgs eventArgs)
        {
            Guard.Requires<ArgumentNullException>(eventArgs != null);
            _eventArgs = eventArgs;
        }

        public string Message
        {
            get { return _eventArgs.Message; }
        }
        public ReceiverNameScope NameScope
        {
            get { return _eventArgs.NameScope; }
        }

        public string ReciverName
        {
            get { return _eventArgs.ReceiverName; }
        }

        public string Response
        {
            set { _eventArgs.Response = value; }
        }

        public string SenderDomain
        {
            get { return _eventArgs.SenderDomain; }
        }
    }
}
